package jdk.java.util;

public class SpliteratorTest {
	public static class TaggedArray<T> {
		private final Object[] elements;

		TaggedArray(T[] data, Object[] tags) {
			int size = data.length;
			if (tags.length != size)
				throw new IllegalArgumentException();
			this.elements = new Object[2 * size];
			for (int i = 0, j = 0; i < size; ++i) {
				elements[i++] = data[i];
				elements[j++] = tags[i];
			}
		}
	}
}
